<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="javax.jdo.PersistenceManager" %>
<%@ page import="javax.jdo.Query" %>
<%@ page import="de.tuhrig.sportlog.pmf.PMF" %>
<%@ page import="de.tuhrig.sportlog.pmf.queries.QueryFactory" %>

<html>
	<head>
		<%@ include file="jsp/controls/Meta.jsp"  %>
	</head>
	
	<div id='container'>
		<%@ include file="jsp/controls/Header.jsp"  %>
		<%@ include file="jsp/controls/Left.jsp"  %>
		<%@ include file="jsp/controls/Right.jsp"  %>
		
		<div id='content'>
		
			<% 
				PersistenceManager pm1 = PMF.get().getPersistenceManager(); 
		        
		        Query query1 = new QueryFactory(pm1).countAllLogs(); 
		
		        int numberOfLogs1 = (Integer) query1.execute(); 
		        
				query1.closeAll();
				
		        pm1.close();
	        %>
        
		   <h1>Welcome to SportLog!</h1>  
		
           <br/>  
		   <h2>News</h2>  
		   <ul>
		   	<li><h3>First calendar implementation (08.08.2011)</h3>  
		  		 <ul>  
		  			 <li>A first calendar in the overview page</li>
		  			 <li>Filtering logs due to dates</li> 
		  		 </ul>   
		  	 </li> 
		   	<li><h3>First visualizations (07.08.2011)</h3>  
		  		 <ul>  
		  			 <li>Some first icons</li> 
		  		 </ul>   
		  	 </li> 
		   	 <li><h3>Playing arround (29.07.2011)</h3>  
		  		 <ul>  
		  			 <li>Some first steps with the <a href="http://www.google.de/ig/api?weather=Stuttgart">Google Weather API</a></li>
		  			 <li>a basic overview page</li>  
		  		 </ul>   
		  	 </li> 
			 <li><h3>On Google Code now (24.07.2011)</h3>  
		  		 <ul>  
		  			 <li>Project now on <a href="http://code.google.com/p/tuhrig-log/">Google Code</a></li>  
		  			 <li>new Date-Picker & Time-Picker using <a href="http://jquery.com/">JQuery</a></li>   
		  		 </ul>   
		  	 </li>  
		  	 <li><h3>JDO Start (21.07.2011)</h3>  
		  		 <ul>  
		  			 <li>Kick-Off with JDO</li>  
		  			 <li>first Data Storing</li>  
		 			 <li>currently <%= numberOfLogs1 %> stored logs</li>  
		  		 </ul>   
		  	 </li>  
		  	 <li><h3>Desing Update (19.07.2011)</h3>  
		  		 <ul>  
		  			 <li>new Stylesheet</li>  
		  			 <li>new Layout</li>  
		 			 <li>File Upload</li>  
		  		 </ul>   
		  	 </li>  
		  	 <li><h3>Project Start (18.07.2011)</h3>  
		  		 <ul>  
		  			 <li>first Servlets</li>  
		  			 <li>Google-Account based log-in</li>  
		  		 </ul>   
		  	 </li>  
		   </ul>  	
		</div>
		<%@ include file="jsp/controls/Footer.jsp"  %>
	</div>
</html>